package com.bai.qf2201.service.Impl;

import com.bai.qf2201.mapper.carMapper;
import com.bai.qf2201.po.Car;
import com.bai.qf2201.service.carService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class carServiceImpl implements carService {
    @Autowired
    private carMapper car;

    @Override
    public List<Car> findAll(int getid) {
        List<Car> all = car.findAll(getid);
        return all;
    }
    @Override
    public List<Car> findAll2(int getid) {
        List<Car> all = car.findAll2(getid);
        return all;
    }

    @Override
    public Car findOneById(int id) {
        Car oneById = car.findOneById(id);
        return oneById;
    }
}
